<%@page import="com.wanmait.hotelManagement.vo.RoomType"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%String path = request.getContextPath(); %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
    <%List<RoomType> allRoomType = (List<RoomType>)request.getAttribute("allRoomType"); 
    for(RoomType roomType:allRoomType)
    {%>
    	<!--Room-->
        <div class="room-block-four wow fadeInUp" data-wow-delay="0ms" data-wow-duration="1500ms">
            <div class="inner-box">
                <div class="image-box">
                    <figure class="image"><img src="<%=path%>/hotel/images/room/<%=roomType.getPictures().get(0).getImages()%>" alt="" title=""></figure>
                    <div class="image-layer" style="background-image: url(<%=path%>/hotel/images/room/<%=roomType.getPictures().get(0).getImages()%>;"></div>
                    <a class="overlink" href="<%=path %>/RoomServlet?action=singleRoom&typeId=<%=roomType.getId()%>"></a>
                </div>
                <div class="content-box">
                    <!-- <div class="rating">
                    
                        <span class="fa fa-star"></span>
                        <span class="fa fa-star"></span>
                        <span class="fa fa-star"></span>
                        <span class="fa fa-star"></span>
                        <span class="fa fa-star"></span>
                    </div> -->
                    <h4><%=roomType.getRoomName() %></h4>
                    <div class="text"><%=roomType.getRemarks() %></div>
                    <div class="link-row clearfix">
                        <div class="pricing clearfix">
                            <div class="price">From <span>￥<%=roomType.getRoomPrice() %></span></div>
                        </div>
                        <div class="link-box"><a href="<%=path %>/RoomServlet?action=singleRoom&typeId=<%=roomType.getId()%>" class="theme-btn btn-style-one"><span class="btn-title">Book Now</span></a></div>
                    </div>
                </div>
            </div>
        </div>
    <%}
    %>
</body>
</html>